
export default defineStore('permission', () => {
    let currentRolePermission = ref([]);
    let setCurrentRole = async (params) => {
        try {
            let res = await api.getRolePermissionApi(params);
            currentRolePermission.value = res.data;
            console.log(currentRolePermission)
        } catch (e) {
            console.log(e.toString())
        }
    }
    return {
        currentRolePermission,
        setCurrentRole
    }
}, {
    persist: true
})